
<%
	/**
	 商品列表页面上部分页处理
	 **/
%>

<%@ page language="java" pageEncoding="UTF-8"%>
<input type="hidden" name="pager.offset" />
<input type="hidden" name="pageSize" />

<pg:pager url="${ctx}/demo/demoManage.do" items="${Page.totalSize}"
	maxPageItems="${Page.pageSize}" maxIndexPages="20"
	export="offset,currentPageNumber=pageNumber">
	<pg:param name="method" value="list" />
	<div class="search_total">
		总共找到
		<font color='red'>${Page.totalSize}</font>个商品
	</div>
	<div class="title" id='gallerybar'>
		<table width="100%" cellpadding=0 cellspacing=0>
			<tbody>
				<tr>
					<td>
						<table class="pager">
							<tr>
								<td>

									<span class="pagecurrent">${Page.offset+1}</span>/
									<span class="pageall">${pageNumber }</span>
								</td>

								<td>

									<pg:first export="firstItem">
										<logic:equal name="Page.offset" value="0">
											<span class="unprev" title="已经是第一页">已经是第一页</span>
										</logic:equal>
										<logic:notEqual name="Page.offset" value="0">
											<a
												href="javascript:gotoPage(${Page.offset - 1},${Page.pageSize});"
												class="prev" onmouseover="this.className = 'onprev'"
												onmouseout="this.className = 'prev'" title="上一页">上一页</a>
										</logic:notEqual>
									</pg:first>
								</td>
								<td>
									<pg:next export="firstItem">
										<a
											href="javascript:gotoPage(${firstItem - 1},${Page.pageSize});"
											style="padding-right: 20px" class="next"
											onmouseover="this.className = 'onnext'"
											onmouseout="this.className = 'next'" title="下一页">下一页</a>
										</a>
									</pg:next>
								</td>

							</tr>
						</table>
					</td>
					<td>
						<div class="listmode">
							
							<logic:equal name="view" value="2">
							  <span class="list_index current">图文列表</span>
							</logic:equal>
							<logic:notEqual name="view" value="2">
							<a href="#" onclick="gotoViewChange(2);" title="图文列表"><span
								class="list_index">图文列表</span> </a>
							</logic:notEqual>
							<logic:equal name="view" value="1">
								<span class="list_grid current">橱窗</span>
							</logic:equal>
							<logic:notEqual name="view" value="1">
								<a href="#" onclick="gotoViewChange(1);" title="橱窗"><span
								class="list_grid">橱窗</span> </a>
							</logic:notEqual>
							
						</div>
					</td>
					<td>
						<div class="listorder">
						<logic:equal name="sort" value="1">
						 <a class="list_asc_on" href="#" ><i>价格</i>
							</a>
						</logic:equal>
						<logic:notEqual name="sort" value="1">
						<a class="list_asc"  href="#" onclick="gotoOrderChange(1);"><i>价格</i>
							</a>
						</logic:notEqual>
						
						
						<logic:equal name="sort" value="2">
						<a class="list_desc_on" href="#"><i>销量</i>
							</a>
						</logic:equal>
						<logic:notEqual name="sort" value="2">
						<a class="list_desc"  href="#" onclick="gotoOrderChange(2);"><i>销量</i>
							</a>
						</logic:notEqual>
						
						
						<logic:equal name="sort" value="3">
						<a class="list_desc_on" href="#"><i>人气</i>
							</a>
						</logic:equal>
						<logic:notEqual name="sort" value="3">
						<a class="list_desc"  href="#" onclick="gotoOrderChange(3);"><i>人气</i>
							</a>
						</logic:notEqual>
						
							
							
							
						</div>
					</td>
				<tr>
			</tbody>
		</table>
	</div>
</pg:pager>

